
<{if not $order}>
    <div class="box-none">
        <img src="/resource/www/imgs/box_none_icon.png" class="img">
        <p class="text">抱歉，你还没有订单！</p>
    </div>
    <{else}>
    <div class="orders-view">
        <h2 class="title">查看订单</h2>

        <p class="info">游客信息</p>

        <div class="user-xin fix">
            <img src="<{$order.tourist.userIcon}>" class="left" style="margin-right: 20px;">
            <div class="center">
                <p class="tourist-one">
                    <span class="span">姓名：<{$order.tourist.userName}></span>
                    <span class="span">性别：<{if $order.tourist.userGender == 'm'}>男<{elseif $order.tourist.userGender == 'f'}>女<{else}>未知<{/if}></span>
                    <span class="span">年龄：<{if $order.tourist.userAge}><{$order.tourist.userAge}><{else}>未知<{/if}></span>
                </p>
            </div>
        </div>

        <p class="info">订单说明</p>

        <div class="ddinfo">
            <p class="one">出行人数：<{$order.persons}>人 </p>
            <p class="one">支付费用：<strong class="strong"><{$order.moneyTotal/100|@number_format:2}>€</strong> </p>
            <p class="one" title="预定服务：<{$order.serviceName}>">预定服务：<{$order.serviceName}></p>
        </div>

        <p class="info">行程时间</p>

        <div class="xcsj fix">
            <span class="start">行程开始时间：<{$order.startDay}> </span>
            <span class="end">行程结束时间：<{$order.stopDay}></span>
        </div>

        <p class="info">当前状态</p>

        <div class="status-wrap">
            <p class="status"><{$order.statusName}></p>
        </div>

        <p class="info">小贴士</p>

        <div class="xiaotieshi">
            行程中哇吖会为您托管资金，请在行程结束后点击《完成行程》，哇吖将会向玩伴执行打款操作。如果行程结束后七日之内没有确认或是提出申诉，系统将自动执行完成行程操作
        </div>

        <div class="axinx">
            <p class="dd">你的订单信息</p>
            <ul class="logs">
                <{foreach from=$logs item="log"}>
                <li class="li fix">
                    <div class="left"><{"Y.m.d"|@date:$log.created}></div>
                    <div class="center"><{"H:i:s"|@date:$log.created}></div>
                    <div class="right" title="<{$log.log}>"><{$log.log}></div>
                </li>
                <{/foreach}>
            </ul>

            <div class="bo-m">
                <{if $order.status == '3' || $order.status == '32'}>
                <span class="jies" onclick="finish_order('<{$order.orderNo}>')">确认付款</span>
                <{/if}>
                <{if $order.status == 3}>
                <span class="jujie" onclick="send_shensu('<{$order.orderNo}>')"class="a">发起申诉</span>
                <{/if}>
            </div>

        </div>

    </div>
<{/if}>
<script type="text/javascript">
function finish_order(orderNo){
	layer.confirm('请在行程结束后点击《确认付款》，哇吖将会向玩伴执行打款操作，您的行程是否已经完成？', {
        title: null,
        btn: ['确认', '取消'],
    },  function () {
            window.location.assign('/order/finish/<{$order.orderNo}>');
    },  function (index) {
        layer.close(index);
    });
}
function send_shensu(orderNo){
	layer.confirm('如果本次行程中玩伴存在重大过失，或者对本次行程有重大异议，您可以向哇吖提出申诉请求，哇吖将根据退款政策执行全部退款或是部分退款操作，另外针对行程中出现的法律纠纷，哇吖也将追究相关责任人的法律责任，您是否确定发起申诉？', {
        title: null,
        btn: ['确认', '取消'],
    },  function () {
            window.location.assign('/order/shensu/<{$order.orderNo}>');
    },  function (index) {
        layer.close(index);
    });
}    
</script>
